package com.zhy.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;

/**
 * @author 随缘而愈
 * @version 1.0
 * @description user模块Springboot启动类
 * @date 23/1/2024 下午5:18
 */
@SpringBootApplication
@MapperScan("com.zhy.*.mapper")
@ComponentScan("com.zhy")
@EnableCaching
public class UserApplication {
    public static void main(String[] args) {
        System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");
        SpringApplication.run(UserApplication.class, args);
    }
}
